package com.sailfish.springbootdemo.pojo.db7;

import org.springframework.data.annotation.Id;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

public class TbKnowledgeBasePushLogic {

    private int id; // 序号

    
    private String knowledge_base_key; // 知识库唯一ID

    
    private int boardParamTypeId; // 单板信息主ID

    
    private int boardParamId; // 单板信息子ID

    private String boardParamTypeName; // 单板类型名称
    private String boardParamKey; // 单板信息子key



    private String boardParamName; // 单板参数名称
    private int logicRule; // 逻辑规则

    
    private String logicValue; // 逻辑判断值

    
    private String logicGroup; // 逻辑判断组



    private int sort;
    private String create_user; // 创建人

    
    @Temporal(TemporalType.TIMESTAMP)
    private Date create_time; // 创建时间

    
    private String update_user; // 更新人

    
    @Temporal(TemporalType.TIMESTAMP)
    private Date update_time; // 更新时间

    
    private String remark; // 备注
    @Override
    // 重写equals hashCode方法判断两个规则相同
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TbKnowledgeBasePushLogic that = (TbKnowledgeBasePushLogic) o;
        return Objects.equals(boardParamName, that.boardParamName) &&
                Objects.equals(boardParamKey, that.boardParamKey) &&
                Objects.equals(logicRule, that.logicRule) &&
                Objects.equals(logicValue, that.logicValue);
    }

    @Override
    public int hashCode() {
        return Objects.hash(boardParamName, boardParamKey, logicRule, logicValue);
    }
    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getKnowledge_base_key() {
        return knowledge_base_key;
    }

    public String getBoardParamTypeName() {
        return boardParamTypeName;
    }

    public void setBoardParamTypeName(String boardParamTypeName) {
        this.boardParamTypeName = boardParamTypeName;
    }

    public int getSort() {
        return sort;
    }

    public String getBoardParamName() {
        return boardParamName;
    }

    public void setBoardParamName(String boardParamName) {
        this.boardParamName = boardParamName;
    }
    public void setSort(int sort) {
        this.sort = sort;
    }
    public void setKnowledge_base_key(String knowledge_base_key) {
        this.knowledge_base_key = knowledge_base_key;
    }

    public int getBoardParamTypeId() {
        return boardParamTypeId;
    }

    public void setBoardParamTypeId(int boardParamTypeId) {
        this.boardParamTypeId = boardParamTypeId;
    }

    public int getBoardParamId() {
        return boardParamId;
    }

    public void setBoardParamId(int boardParamId) {
        this.boardParamId = boardParamId;
    }

    public String getBoardParamKey() {
        return boardParamKey;
    }

    public void setBoardParamKey(String boardParamKey) {
        this.boardParamKey = boardParamKey;
    }

    public int getLogicRule() {
        return logicRule;
    }

    public void setLogicRule(int logicRule) {
        this.logicRule = logicRule;
    }

    public String getLogicValue() {
        return logicValue;
    }

    public void setLogicValue(String logicValue) {
        this.logicValue = logicValue;
    }

    public String getLogicGroup() {
        return logicGroup;
    }

    public void setLogicGroup(String logicGroup) {
        this.logicGroup = logicGroup;
    }

    public String getCreate_user() {
        return create_user;
    }

    public void setCreate_user(String create_user) {
        this.create_user = create_user;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_user() {
        return update_user;
    }

    public void setUpdate_user(String update_user) {
        this.update_user = update_user;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
